package com.demo.controller;

import com.demo.model.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class StudentController2 {
    @Autowired
    private Student student;
    public void getStudent(){
        System.out.println(student);
    }

}
